From 48147f8692b95d70f1acb0b4da4750a756737cc7 Mon Sep 17 00:00:00 2001 From: Bryan Tong Minh Date: Wed, 21 Jul 2010 14:31:24 +0000 Subject: [PATCH] Follow-up r69203: remove str_replace( '_', ' ', $query ); was only needed for Special:Search/$par case, not applicable to API --- includes/api/ApiQuerySearch.php | 1 - 1 file changed, 1 deletion(-) diff --git a/includes/api/ApiQuerySearch.php b/includes/api/ApiQuerySearch.php index b1608fde3a..86ba895893 100644 --- a/includes/api/ApiQuerySearch.php +++ b/includes/api/ApiQuerySearch.php @@ -74,7 +74,6 @@ class ApiQuerySearch extends ApiQueryGeneratorBase { } elseif ( $what == 'title' ) { $matches = $search->searchTitle( $query ); } elseif ( $what == 'nearmatch' ) { - $query = str_replace( '_', ' ', $query ); $matches = SearchEngine::getNearMatchResultSet( $query ); } else { // We default to title searches; this is a terrible legacy -- 2.20.1